import { ApiProperty } from '@nestjs/swagger';
import { IsEnum, IsNotEmpty } from 'class-validator';
import { PointsGoodsExchangeStatus } from '../points-goods-exchange.entity';

export class UpdateExchangeStatusDto {
  @ApiProperty({ description: '兑换状态', enum: PointsGoodsExchangeStatus, example: PointsGoodsExchangeStatus.APPROVED })
  @IsNotEmpty({ message: '状态不能为空' })
  @IsEnum(PointsGoodsExchangeStatus)
  status: PointsGoodsExchangeStatus;
}
